﻿namespace CatClient.Message.Spi.Codec
{
    using CatClient.Message;
    using System;

    public interface IMessageCodec
    {
        IMessageTree Decode(ChannelBuffer buf);
        void Decode(ChannelBuffer buf, IMessageTree tree);
        void Encode(IMessageTree tree, ChannelBuffer buf);
    }
}

